package ui;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JTextArea;
import javax.swing.JButton;

public class Result extends JPanel {
	private JLabel lblResultatAfSpoergeskemaundersoegelse;
	private JTextArea textArea;
	private JButton btnBack;
	private JButton btnFinish;

	/**
	 * Create the panel.
	 */
	public Result() {
		setLayout(null);
		
		lblResultatAfSpoergeskemaundersoegelse = new JLabel("Resultat af spoergeskemaundersoegelse");
		lblResultatAfSpoergeskemaundersoegelse.setFont(new Font("Tahoma", Font.PLAIN, 18));
		lblResultatAfSpoergeskemaundersoegelse.setBounds(56, 11, 314, 22);
		add(lblResultatAfSpoergeskemaundersoegelse);
		
		textArea = new JTextArea();
		textArea.setBounds(21, 57, 396, 121);
		add(textArea);
		
		btnBack = new JButton("<");
		btnBack.setBounds(90, 200, 89, 23);
		add(btnBack);
		
		btnFinish = new JButton("Finish");
		btnFinish.setBounds(269, 200, 89, 23);
		add(btnFinish);

	}
	
	public void show(String s) {
		textArea.setText(s);
	}
	
	public JButton getBtnBack() {
		return btnBack;
	}



	public void addActionListener(ActionListener l) {
		btnBack.addActionListener(l);
		btnFinish.addActionListener(l);
	}

}
